import request from '@/utils/request'

//新增企业
export function save(data) {
  return request({
    url: '/jms/jmsProfession/save',
    method: 'post',
    data: data
  })
}

//删除专业
export function deleteProfession(id) {
  return request({
    url: '/jms/jmsProfession/delete/'+id,
    method: 'get',
  })
}

//修改专业
export function update(data) {
  return request({
    url: '/jms/jmsProfession/update',
    method: 'post',
    data: data
  })
}



//根据ID查询专业信息
export function findById(id) {
  return request({
    url: '/jms/jmsProfession/findById/'+id,
    method: 'get',
  })
}

//获取级联专业树
export function getProfessionTree() {
  return request({
    url: '/jms/jmsProfession/getProfessionTree',
    method: 'get',
  })
}

//查询全部专业
export function findAll() {
  return request({
    url: '/jms/jmsProfession/findAll',
    method: 'get',
  })
}




